package com.felix.controller;


import com.felix.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * PersonController
 *
 * @author xjh
 * @version 1.0
 * @date 2019-05-21
 */
@RestController
public class PersonController {

    private final PersonService personService;

    @Autowired
    public PersonController(PersonService personService) {
        this.personService = personService;
    }

    @PostMapping("/person")
    public void save() {
        personService.saveA();
    }
}
